﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using LinqToPi;

namespace LinqToPiWCFTest.Web
{
    // NOTE: If you change the interface name "IPiDataService" here, you must also update the reference to "IPiDataService" in Web.config.
    [ServiceContract]
    public interface IPiDataService
    {
        [OperationContract]
        IEnumerable<PiLogItem> SearchPiMessageLog(string contains, DateTime startTime, DateTime endTime);

        [OperationContract]
        IEnumerable<PiValue> GetPiValues(string tagName, DateTime startTime, DateTime endTime);

        [OperationContract]
        bool UpdatePiValue(PiValue value);
    }
}
